package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WarehouseComeDetailsMapper;
import com.ruoyi.system.domain.WarehouseComeDetails;
import com.ruoyi.system.service.IWarehouseComeDetailsService;

/**
 * 入库明细表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-26
 */
@Service
public class WarehouseComeDetailsServiceImpl implements IWarehouseComeDetailsService 
{
    @Autowired
    private WarehouseComeDetailsMapper warehouseComeDetailsMapper;

    /**
     * 查询入库明细表
     * 
     * @param warehouseComeDetailsId 入库明细表主键
     * @return 入库明细表
     */
    @Override
    public WarehouseComeDetails selectWarehouseComeDetailsByWarehouseComeDetailsId(String warehouseComeDetailsId)
    {
        return warehouseComeDetailsMapper.selectWarehouseComeDetailsByWarehouseComeDetailsId(warehouseComeDetailsId);
    }

    /**
     * 查询入库明细表列表
     * 
     * @param warehouseComeDetails 入库明细表
     * @return 入库明细表
     */
    @Override
    public List<WarehouseComeDetails> selectWarehouseComeDetailsList(WarehouseComeDetails warehouseComeDetails)
    {
        return warehouseComeDetailsMapper.selectWarehouseComeDetailsList(warehouseComeDetails);
    }

    /**
     * 新增入库明细表
     * 
     * @param warehouseComeDetails 入库明细表
     * @return 结果
     */
    @Override
    public int insertWarehouseComeDetails(WarehouseComeDetails warehouseComeDetails)
    {
        return warehouseComeDetailsMapper.insertWarehouseComeDetails(warehouseComeDetails);
    }

    /**
     * 修改入库明细表
     * 
     * @param warehouseComeDetails 入库明细表
     * @return 结果
     */
    @Override
    public int updateWarehouseComeDetails(WarehouseComeDetails warehouseComeDetails)
    {
        return warehouseComeDetailsMapper.updateWarehouseComeDetails(warehouseComeDetails);
    }

    /**
     * 批量删除入库明细表
     * 
     * @param warehouseComeDetailsIds 需要删除的入库明细表主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseComeDetailsByWarehouseComeDetailsIds(String[] warehouseComeDetailsIds)
    {
        return warehouseComeDetailsMapper.deleteWarehouseComeDetailsByWarehouseComeDetailsIds(warehouseComeDetailsIds);
    }

    /**
     * 删除入库明细表信息
     * 
     * @param warehouseComeDetailsId 入库明细表主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseComeDetailsByWarehouseComeDetailsId(String warehouseComeDetailsId)
    {
        return warehouseComeDetailsMapper.deleteWarehouseComeDetailsByWarehouseComeDetailsId(warehouseComeDetailsId);
    }
}
